<?php
$tdatapacking_lists_report=array();
	$tdatapacking_lists_report[".NumberOfChars"]=80; 
	$tdatapacking_lists_report[".ShortName"]="packing_lists_report";
	$tdatapacking_lists_report[".OwnerID"]="";
	$tdatapacking_lists_report[".OriginalTable"]="packing_lists";


	
//	field labels
$fieldLabelspacking_lists_report = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelspacking_lists_report["English"]=array();
	$fieldToolTipspacking_lists_report["English"]=array();
	$fieldLabelspacking_lists_report["English"]["id"] = "Id";
	$fieldToolTipspacking_lists_report["English"]["id"] = "";
	$fieldLabelspacking_lists_report["English"]["place"] = "Place";
	$fieldToolTipspacking_lists_report["English"]["place"] = "";
	$fieldLabelspacking_lists_report["English"]["shipment_date"] = "Shipment Date";
	$fieldToolTipspacking_lists_report["English"]["shipment_date"] = "";
	$fieldLabelspacking_lists_report["English"]["buyer_id"] = "Buyer";
	$fieldToolTipspacking_lists_report["English"]["buyer_id"] = "";
	$fieldLabelspacking_lists_report["English"]["name"] = "Name";
	$fieldToolTipspacking_lists_report["English"]["name"] = "";
	$fieldLabelspacking_lists_report["English"]["order_no"] = "Order No";
	$fieldToolTipspacking_lists_report["English"]["order_no"] = "";
	$fieldLabelspacking_lists_report["English"]["consignee_id"] = "Consignee";
	$fieldToolTipspacking_lists_report["English"]["consignee_id"] = "";
	$fieldLabelspacking_lists_report["English"]["shipment_pack_details"] = "Shipment Pack Details";
	$fieldToolTipspacking_lists_report["English"]["shipment_pack_details"] = "";
	$fieldLabelspacking_lists_report["English"]["marks"] = "Marks";
	$fieldToolTipspacking_lists_report["English"]["marks"] = "";
	$fieldLabelspacking_lists_report["English"]["ref_id"] = "Ref Id";
	$fieldToolTipspacking_lists_report["English"]["ref_id"] = "";
	if (count($fieldToolTipspacking_lists_report["English"])){
		$tdatapacking_lists_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["place"] = "Place";
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["place"] = "";
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["shipment_date"] = "Shipment Date";
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["shipment_date"] = "";
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "";
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["name"] = "Name";
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["name"] = "";
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["order_no"] = "Order No";
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["order_no"] = "";
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["consignee_id"] = "Consignee Id";
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["consignee_id"] = "";
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["shipment_pack_details"] = "Shipment Pack Details";
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["shipment_pack_details"] = "";
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["marks"] = "Marks";
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["marks"] = "";
	$fieldLabelspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "Ref Id";
	$fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "";
	if (count($fieldToolTipspacking_lists_report["Chinese (Hong Kong S.A.R.)"])){
		$tdatapacking_lists_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]=array();
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]=array();
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]["place"] = "Place";
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]["place"] = "";
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]["shipment_date"] = "Shipment Date";
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]["shipment_date"] = "";
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]["buyer_id"] = "";
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]["name"] = "Name";
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]["name"] = "";
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]["order_no"] = "Order No";
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]["order_no"] = "";
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]["consignee_id"] = "Consignee Id";
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]["consignee_id"] = "";
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]["shipment_pack_details"] = "Shipment Pack Details";
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]["shipment_pack_details"] = "";
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]["marks"] = "Marks";
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]["marks"] = "";
	$fieldLabelspacking_lists_report["Chinese (Taiwan)"]["ref_id"] = "Ref Id";
	$fieldToolTipspacking_lists_report["Chinese (Taiwan)"]["ref_id"] = "";
	if (count($fieldToolTipspacking_lists_report["Chinese (Taiwan)"])){
		$tdatapacking_lists_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelspacking_lists_report["French"]=array();
	$fieldToolTipspacking_lists_report["French"]=array();
	$fieldLabelspacking_lists_report["French"]["id"] = "Id";
	$fieldToolTipspacking_lists_report["French"]["id"] = "";
	$fieldLabelspacking_lists_report["French"]["place"] = "Place";
	$fieldToolTipspacking_lists_report["French"]["place"] = "";
	$fieldLabelspacking_lists_report["French"]["shipment_date"] = "Shipment Date";
	$fieldToolTipspacking_lists_report["French"]["shipment_date"] = "";
	$fieldLabelspacking_lists_report["French"]["buyer_id"] = "Buyer Id";
	$fieldToolTipspacking_lists_report["French"]["buyer_id"] = "";
	$fieldLabelspacking_lists_report["French"]["name"] = "Name";
	$fieldToolTipspacking_lists_report["French"]["name"] = "";
	$fieldLabelspacking_lists_report["French"]["order_no"] = "Order No";
	$fieldToolTipspacking_lists_report["French"]["order_no"] = "";
	$fieldLabelspacking_lists_report["French"]["consignee_id"] = "Consignee Id";
	$fieldToolTipspacking_lists_report["French"]["consignee_id"] = "";
	$fieldLabelspacking_lists_report["French"]["shipment_pack_details"] = "Shipment Pack Details";
	$fieldToolTipspacking_lists_report["French"]["shipment_pack_details"] = "";
	$fieldLabelspacking_lists_report["French"]["marks"] = "Marks";
	$fieldToolTipspacking_lists_report["French"]["marks"] = "";
	$fieldLabelspacking_lists_report["French"]["ref_id"] = "Ref Id";
	$fieldToolTipspacking_lists_report["French"]["ref_id"] = "";
	if (count($fieldToolTipspacking_lists_report["French"])){
		$tdatapacking_lists_report[".isUseToolTips"]=true;
	}
}


	
	$tdatapacking_lists_report[".NCSearch"]=true;

	

$tdatapacking_lists_report[".shortTableName"] = "packing_lists_report";
$tdatapacking_lists_report[".nSecOptions"] = 0;
$tdatapacking_lists_report[".recsPerRowList"] = 1;	
$tdatapacking_lists_report[".tableGroupBy"] = "0";
$tdatapacking_lists_report[".mainTableOwnerID"] = "";
$tdatapacking_lists_report[".moveNext"] = 1;




$tdatapacking_lists_report[".showAddInPopup"] = false;

$tdatapacking_lists_report[".showEditInPopup"] = false;

$tdatapacking_lists_report[".showViewInPopup"] = false;


$tdatapacking_lists_report[".fieldsForRegister"] = array();

$tdatapacking_lists_report[".listAjax"] = false;

	$tdatapacking_lists_report[".audit"] = false;

	$tdatapacking_lists_report[".locking"] = false;
	
$tdatapacking_lists_report[".listIcons"] = true;
$tdatapacking_lists_report[".edit"] = true;
$tdatapacking_lists_report[".inlineEdit"] = true;
$tdatapacking_lists_report[".view"] = true;

$tdatapacking_lists_report[".exportTo"] = true;

$tdatapacking_lists_report[".printFriendly"] = true;

$tdatapacking_lists_report[".delete"] = true;

$tdatapacking_lists_report[".showSimpleSearchOptions"] = false;

$tdatapacking_lists_report[".showSearchPanel"] = true;


$tdatapacking_lists_report[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatapacking_lists_report[".addPageEvents"] = false;

$tdatapacking_lists_report[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatapacking_lists_report[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdatapacking_lists_report[".isUseTimeForSearch"] = false;

$tdatapacking_lists_report[".isUseiBox"] = false;



$tdatapacking_lists_report[".isUseInlineJs"] = $tdatapacking_lists_report[".isUseInlineAdd"] || $tdatapacking_lists_report[".isUseInlineEdit"];

$tdatapacking_lists_report[".allSearchFields"] = array();

$tdatapacking_lists_report[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatapacking_lists_report[".allSearchFields"]))
{
	$tdatapacking_lists_report[".allSearchFields"][] = "id";	
}
$tdatapacking_lists_report[".globSearchFields"][] = "place";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("place", $tdatapacking_lists_report[".allSearchFields"]))
{
	$tdatapacking_lists_report[".allSearchFields"][] = "place";	
}
$tdatapacking_lists_report[".globSearchFields"][] = "shipment_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("shipment_date", $tdatapacking_lists_report[".allSearchFields"]))
{
	$tdatapacking_lists_report[".allSearchFields"][] = "shipment_date";	
}
$tdatapacking_lists_report[".globSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdatapacking_lists_report[".allSearchFields"]))
{
	$tdatapacking_lists_report[".allSearchFields"][] = "buyer_id";	
}
$tdatapacking_lists_report[".globSearchFields"][] = "name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("name", $tdatapacking_lists_report[".allSearchFields"]))
{
	$tdatapacking_lists_report[".allSearchFields"][] = "name";	
}
$tdatapacking_lists_report[".globSearchFields"][] = "order_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("order_no", $tdatapacking_lists_report[".allSearchFields"]))
{
	$tdatapacking_lists_report[".allSearchFields"][] = "order_no";	
}
$tdatapacking_lists_report[".globSearchFields"][] = "consignee_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_id", $tdatapacking_lists_report[".allSearchFields"]))
{
	$tdatapacking_lists_report[".allSearchFields"][] = "consignee_id";	
}
$tdatapacking_lists_report[".globSearchFields"][] = "shipment_pack_details";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("shipment_pack_details", $tdatapacking_lists_report[".allSearchFields"]))
{
	$tdatapacking_lists_report[".allSearchFields"][] = "shipment_pack_details";	
}
$tdatapacking_lists_report[".globSearchFields"][] = "marks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("marks", $tdatapacking_lists_report[".allSearchFields"]))
{
	$tdatapacking_lists_report[".allSearchFields"][] = "marks";	
}
$tdatapacking_lists_report[".globSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatapacking_lists_report[".allSearchFields"]))
{
	$tdatapacking_lists_report[".allSearchFields"][] = "ref_id";	
}


$tdatapacking_lists_report[".googleLikeFields"][] = "id";
$tdatapacking_lists_report[".googleLikeFields"][] = "place";
$tdatapacking_lists_report[".googleLikeFields"][] = "shipment_date";
$tdatapacking_lists_report[".googleLikeFields"][] = "buyer_id";
$tdatapacking_lists_report[".googleLikeFields"][] = "name";
$tdatapacking_lists_report[".googleLikeFields"][] = "order_no";
$tdatapacking_lists_report[".googleLikeFields"][] = "consignee_id";
$tdatapacking_lists_report[".googleLikeFields"][] = "shipment_pack_details";
$tdatapacking_lists_report[".googleLikeFields"][] = "marks";
$tdatapacking_lists_report[".googleLikeFields"][] = "ref_id";



$tdatapacking_lists_report[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatapacking_lists_report[".allSearchFields"])) 
{
	$tdatapacking_lists_report[".allSearchFields"][] = "id";	
}
$tdatapacking_lists_report[".advSearchFields"][] = "place";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("place", $tdatapacking_lists_report[".allSearchFields"])) 
{
	$tdatapacking_lists_report[".allSearchFields"][] = "place";	
}
$tdatapacking_lists_report[".advSearchFields"][] = "shipment_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("shipment_date", $tdatapacking_lists_report[".allSearchFields"])) 
{
	$tdatapacking_lists_report[".allSearchFields"][] = "shipment_date";	
}
$tdatapacking_lists_report[".advSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdatapacking_lists_report[".allSearchFields"])) 
{
	$tdatapacking_lists_report[".allSearchFields"][] = "buyer_id";	
}
$tdatapacking_lists_report[".advSearchFields"][] = "name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("name", $tdatapacking_lists_report[".allSearchFields"])) 
{
	$tdatapacking_lists_report[".allSearchFields"][] = "name";	
}
$tdatapacking_lists_report[".advSearchFields"][] = "order_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("order_no", $tdatapacking_lists_report[".allSearchFields"])) 
{
	$tdatapacking_lists_report[".allSearchFields"][] = "order_no";	
}
$tdatapacking_lists_report[".advSearchFields"][] = "consignee_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_id", $tdatapacking_lists_report[".allSearchFields"])) 
{
	$tdatapacking_lists_report[".allSearchFields"][] = "consignee_id";	
}
$tdatapacking_lists_report[".advSearchFields"][] = "shipment_pack_details";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("shipment_pack_details", $tdatapacking_lists_report[".allSearchFields"])) 
{
	$tdatapacking_lists_report[".allSearchFields"][] = "shipment_pack_details";	
}
$tdatapacking_lists_report[".advSearchFields"][] = "marks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("marks", $tdatapacking_lists_report[".allSearchFields"])) 
{
	$tdatapacking_lists_report[".allSearchFields"][] = "marks";	
}
$tdatapacking_lists_report[".advSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatapacking_lists_report[".allSearchFields"])) 
{
	$tdatapacking_lists_report[".allSearchFields"][] = "ref_id";	
}

$tdatapacking_lists_report[".isTableType"] = "report";


	

$tdatapacking_lists_report[".isDisplayLoading"] = true;

$tdatapacking_lists_report[".isResizeColumns"] = false;






$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatapacking_lists_report[".strOrderBy"] = $gstrOrderBy;
	
$tdatapacking_lists_report[".orderindexes"] = array();

$tdatapacking_lists_report[".sqlHead"] = "SELECT id,   place,   shipment_date,   buyer_id,   name,   order_no,   consignee_id,   shipment_pack_details,   marks,   ref_id";
$tdatapacking_lists_report[".sqlFrom"] = "FROM packing_lists";
$tdatapacking_lists_report[".sqlWhereExpr"] = "";
$tdatapacking_lists_report[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatapacking_lists_report[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatapacking_lists_report[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatapacking_lists_report[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "packing_lists";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatapacking_lists_report["id"]=$fdata;
//	place
	$fdata = array();
	$fdata["strName"] = "place";
	$fdata["ownerTable"] = "packing_lists";
		$fdata["Label"]="Place"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "place";
	
		$fdata["FullName"]= "place";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatapacking_lists_report["place"]=$fdata;
//	shipment_date
	$fdata = array();
	$fdata["strName"] = "shipment_date";
	$fdata["ownerTable"] = "packing_lists";
		$fdata["Label"]="Shipment Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "shipment_date";
	
		$fdata["FullName"]= "shipment_date";
	
		
		
		
		
		
				$fdata["Index"]= 3;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatapacking_lists_report["shipment_date"]=$fdata;
//	buyer_id
	$fdata = array();
	$fdata["strName"] = "buyer_id";
	$fdata["ownerTable"] = "packing_lists";
		$fdata["Label"]="Buyer"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "buyer_id";
	
		$fdata["FullName"]= "buyer_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatapacking_lists_report["buyer_id"]=$fdata;
//	name
	$fdata = array();
	$fdata["strName"] = "name";
	$fdata["ownerTable"] = "packing_lists";
		$fdata["Label"]="Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "name";
	
		$fdata["FullName"]= "name";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatapacking_lists_report["name"]=$fdata;
//	order_no
	$fdata = array();
	$fdata["strName"] = "order_no";
	$fdata["ownerTable"] = "packing_lists";
		$fdata["Label"]="Order No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "order_no";
	
		$fdata["FullName"]= "order_no";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatapacking_lists_report["order_no"]=$fdata;
//	consignee_id
	$fdata = array();
	$fdata["strName"] = "consignee_id";
	$fdata["ownerTable"] = "packing_lists";
		$fdata["Label"]="Consignee"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "consignee_id";
	
		$fdata["FullName"]= "consignee_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatapacking_lists_report["consignee_id"]=$fdata;
//	shipment_pack_details
	$fdata = array();
	$fdata["strName"] = "shipment_pack_details";
	$fdata["ownerTable"] = "packing_lists";
		$fdata["Label"]="Shipment Pack Details"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "shipment_pack_details";
	
		$fdata["FullName"]= "shipment_pack_details";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatapacking_lists_report["shipment_pack_details"]=$fdata;
//	marks
	$fdata = array();
	$fdata["strName"] = "marks";
	$fdata["ownerTable"] = "packing_lists";
		$fdata["Label"]="Marks"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "marks";
	
		$fdata["FullName"]= "marks";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatapacking_lists_report["marks"]=$fdata;
//	ref_id
	$fdata = array();
	$fdata["strName"] = "ref_id";
	$fdata["ownerTable"] = "packing_lists";
		$fdata["Label"]="Ref Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ref_id";
	
		$fdata["FullName"]= "ref_id";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				
		
		
		
		
		
			$tdatapacking_lists_report["ref_id"]=$fdata;

	
$tables_data["packing_lists_report"]=&$tdatapacking_lists_report;
$field_labels["packing_lists_report"] = &$fieldLabelspacking_lists_report;
$fieldToolTips["packing_lists_report"] = &$fieldToolTipspacking_lists_report;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["packing_lists_report"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["packing_lists_report"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto221=array();
$proto221["m_strHead"] = "SELECT";
$proto221["m_strFieldList"] = "id,   place,   shipment_date,   buyer_id,   name,   order_no,   consignee_id,   shipment_pack_details,   marks,   ref_id";
$proto221["m_strFrom"] = "FROM packing_lists";
$proto221["m_strWhere"] = "";
$proto221["m_strOrderBy"] = "";
$proto221["m_strTail"] = "";
$proto222=array();
$proto222["m_sql"] = "";
$proto222["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto222["m_column"]=$obj;
$proto222["m_contained"] = array();
$proto222["m_strCase"] = "";
$proto222["m_havingmode"] = "0";
$proto222["m_inBrackets"] = "0";
$proto222["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto222);

$proto221["m_where"] = $obj;
$proto224=array();
$proto224["m_sql"] = "";
$proto224["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto224["m_column"]=$obj;
$proto224["m_contained"] = array();
$proto224["m_strCase"] = "";
$proto224["m_havingmode"] = "0";
$proto224["m_inBrackets"] = "0";
$proto224["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto224);

$proto221["m_having"] = $obj;
$proto221["m_fieldlist"] = array();
						$proto226=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "packing_lists"
));

$proto226["m_expr"]=$obj;
$proto226["m_alias"] = "";
$obj = new SQLFieldListItem($proto226);

$proto221["m_fieldlist"][]=$obj;
						$proto228=array();
			$obj = new SQLField(array(
	"m_strName" => "place",
	"m_strTable" => "packing_lists"
));

$proto228["m_expr"]=$obj;
$proto228["m_alias"] = "";
$obj = new SQLFieldListItem($proto228);

$proto221["m_fieldlist"][]=$obj;
						$proto230=array();
			$obj = new SQLField(array(
	"m_strName" => "shipment_date",
	"m_strTable" => "packing_lists"
));

$proto230["m_expr"]=$obj;
$proto230["m_alias"] = "";
$obj = new SQLFieldListItem($proto230);

$proto221["m_fieldlist"][]=$obj;
						$proto232=array();
			$obj = new SQLField(array(
	"m_strName" => "buyer_id",
	"m_strTable" => "packing_lists"
));

$proto232["m_expr"]=$obj;
$proto232["m_alias"] = "";
$obj = new SQLFieldListItem($proto232);

$proto221["m_fieldlist"][]=$obj;
						$proto234=array();
			$obj = new SQLField(array(
	"m_strName" => "name",
	"m_strTable" => "packing_lists"
));

$proto234["m_expr"]=$obj;
$proto234["m_alias"] = "";
$obj = new SQLFieldListItem($proto234);

$proto221["m_fieldlist"][]=$obj;
						$proto236=array();
			$obj = new SQLField(array(
	"m_strName" => "order_no",
	"m_strTable" => "packing_lists"
));

$proto236["m_expr"]=$obj;
$proto236["m_alias"] = "";
$obj = new SQLFieldListItem($proto236);

$proto221["m_fieldlist"][]=$obj;
						$proto238=array();
			$obj = new SQLField(array(
	"m_strName" => "consignee_id",
	"m_strTable" => "packing_lists"
));

$proto238["m_expr"]=$obj;
$proto238["m_alias"] = "";
$obj = new SQLFieldListItem($proto238);

$proto221["m_fieldlist"][]=$obj;
						$proto240=array();
			$obj = new SQLField(array(
	"m_strName" => "shipment_pack_details",
	"m_strTable" => "packing_lists"
));

$proto240["m_expr"]=$obj;
$proto240["m_alias"] = "";
$obj = new SQLFieldListItem($proto240);

$proto221["m_fieldlist"][]=$obj;
						$proto242=array();
			$obj = new SQLField(array(
	"m_strName" => "marks",
	"m_strTable" => "packing_lists"
));

$proto242["m_expr"]=$obj;
$proto242["m_alias"] = "";
$obj = new SQLFieldListItem($proto242);

$proto221["m_fieldlist"][]=$obj;
						$proto244=array();
			$obj = new SQLField(array(
	"m_strName" => "ref_id",
	"m_strTable" => "packing_lists"
));

$proto244["m_expr"]=$obj;
$proto244["m_alias"] = "";
$obj = new SQLFieldListItem($proto244);

$proto221["m_fieldlist"][]=$obj;
$proto221["m_fromlist"] = array();
												$proto246=array();
$proto246["m_link"] = "SQLL_MAIN";
			$proto247=array();
$proto247["m_strName"] = "packing_lists";
$proto247["m_columns"] = array();
$proto247["m_columns"][] = "id";
$proto247["m_columns"][] = "place";
$proto247["m_columns"][] = "shipment_date";
$proto247["m_columns"][] = "buyer_id";
$proto247["m_columns"][] = "name";
$proto247["m_columns"][] = "order_no";
$proto247["m_columns"][] = "consignee_id";
$proto247["m_columns"][] = "shipment_pack_details";
$proto247["m_columns"][] = "marks";
$proto247["m_columns"][] = "ref_id";
$obj = new SQLTable($proto247);

$proto246["m_table"] = $obj;
$proto246["m_alias"] = "";
$proto248=array();
$proto248["m_sql"] = "";
$proto248["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto248["m_column"]=$obj;
$proto248["m_contained"] = array();
$proto248["m_strCase"] = "";
$proto248["m_havingmode"] = "0";
$proto248["m_inBrackets"] = "0";
$proto248["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto248);

$proto246["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto246);

$proto221["m_fromlist"][]=$obj;
$proto221["m_groupby"] = array();
$proto221["m_orderby"] = array();
$obj = new SQLQuery($proto221);

$queryData_packing_lists_report = $obj;
$tdatapacking_lists_report[".sqlquery"] = $queryData_packing_lists_report;

$tableEvents["packing_lists_report"] = new eventsBase;

?>
